import React,{Component} from 'react';
import RefreshList from '../../common/refresh.list.js'
import ShortItem from '../../common/shortItem.js';
import {Badge} from 'antd-mobile';
const data=[1,2,3,4];
export default class CircleList extends Component{
    upFresh=(callback)=>{
        setTimeout(()=>callback(1),2000)
    };
    downLoad=(callback)=>{
        setTimeout(()=>callback(1),2000)
    };
    rowList=(key,i)=>{
        return <ShortItem key={key} />
    }
    render(){
        return(
                <div className="main-shop-list">
                    <div className="new-massage">
                       <span className="icon">new</span>
                        <span className="num">12</span>
                    </div>
                    <RefreshList
                        contentHeight={1000}
                        isFresh={true}
                        isLoad={true}
                        upFresh={this.upFresh}
                        downLoad={this.downLoad}
                        Data={data}
                        Row={this.rowList}
                        />
                </div>
        )
    }
}
